package com.icoding.trangphuc

import com.icoding.trangphuc.constant.CategoryStatus

class Category {

	static mapping = {
		id column : 'article_id', generator : 'foreign',params :[ property : 'article']
		article insertable :false, updateable : false
	}
	static belongsTo = [article:Article]
	static constraints = {
	}

	Category parent

	CategoryStatus categoryStatus;

	static hasMany = [news:News,products:Product]
}
